import { defineStore } from 'pinia'

// Settings store
export const useSettingsStore = defineStore('settings', {
  state: () => ({
    hiddenStatusLeft: false,
    // 其他 settings 状态...
  })
})

// User store
export const useUserStore = defineStore('user', {
  state: () => ({
    sex: '',
    username: '',
    imgHeader: '',
    userDetail: null,
    resourceMain: {
      staticWebsite: ''
    }
    // 其他 user 状态...
  }),
  actions: {
    async logout() {
      // 登出逻辑...
    }
  }
})

// Auth store
export const useAuthStore = defineStore('auth', {
  state: () => ({
    authDialog: false,
    loginDialog: false
  }),
  actions: {
    openLoginDialog() {
      this.loginDialog = true
    }
  }
})

export { useSocketStore } from './socket'
